package com.lxy.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.jwt")
@Data
public class JwtProperties {

    /**
     * 管理员生成jwt令牌相关配置
     */
    private String userSecretKey;
    private long userTtl;
    private String userTokenName;

    /**
     * 商家生成jwt令牌相关配置
     */
    private String businessManSecretKey;
    private long  businessmanTtl;
    private String businessmanTokenName;

    /**
     *店铺生成jwt令牌相关配置
     */
    private String shopSecretKey;
    private long  shopTtl;
    private String shopTokenName;

    /**
     *用户生成jwt令牌相关配置
     */
    private String usersSecretKey;
    private long  usersTtl;
    private String usersTokenName;

    /**
     *骑手生成jwt令牌相关配置
     */
    private String riderSecretKey;
    private long  riderTtl;
    private String riderTokenName;
}
